% TEST_ID: LANG-EXPAND-0093
% CATEGORY: stdlib/arithmetic_ops/triangle
% 测试 三角函数

function test_sin_cos_tan()

assert(abs(cos(7) - 0.753902254343305) < 1e-12)
assert(abs(real(cos(2+2i)) + 1.565625835315744) < 1e-12 && abs(imag(cos(2+2i)) + 3.297894836311237) < 1e-12)

assert(abs(sin(7) - 0.656986598718789) < 1e-12)
assert(abs(real(sin(2+2i)) - 3.420954861117013) < 1e-12 && abs(imag(sin(2+2i)) + 1.509306485323616) < 1e-12)

assert(abs(tan(7) - 0.871447982724319) < 1e-12)
assert(abs(real(tan(2+2i)) + 0.028392952868232) < 1e-12 && abs(imag(tan(2+2i)) - 1.023835594570473) < 1e-12)